<template>
  <div id="detail">

    <h1>{{ msg }}</h1>
    <h2>我是product组件</h2>
  </div>
</template>



<script>
export default {
  data() {
    return {
      msg: "product组件"
    };
  },
  methods: {},
  mounted() {
    console.log("product组件渲染完毕");

    //获取get传值
    alert(this.$route.query);
    alert(this.$route.query.item);
  }
};
</script>

<style lang="scss">
</style>